<%@ page import="java.text.SimpleDateFormat" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
  <meta name="description" content="This ist homepage of the Members of Team Sangria."/>
  <meta name="keywords" content="Members of Team Sangria, MOTSangria"/>
  <meta name="author" content="Carsten Block"/>
  <link rel="stylesheet" href="${createLinkTo(dir: 'css', file: 'main.css')}" media="screen,projection"/>
  <link rel="stylesheet" href="${createLinkTo(dir: 'css', file: 'print.css')}" media="print"/>
  <link rel="shortcut icon" href="${createLinkTo(dir: 'images', file: 'favicon.ico')}" type="image/x-icon"/>

  <title>MoTSangria - <g:layoutTitle default="Microgrid Market"/></title>

  <g:layoutHead/>
  <g:javascript library="application"/>
</head>
<body>
<div id="spinner" class="spinner" style="display:none;">
  <img src="${createLinkTo(dir: 'images', file: 'spinner.gif')}" alt="Spinner"/>
</div>

<div id="wrap">
  <div id="header">
    <div align="center">
      <a href="${createLinkTo(dir: '')}"><img id="frontphoto" border="0" src="${createLinkTo(dir: 'images', file: 'motsangria2.jpg')}" alt="MoTSangria 2000 Logo"/></a>
    </div>
    <div id="navigation">
      <ul>
        <li><a href="${createLinkTo(dir:'index.gsp')}">About Us</a></li>
        <li><g:link controller="message">Activities</g:link></li>
        <li><g:link controller="profile">Members</g:link></li>
        <li><g:link controller="event">Events</g:link></li>
        <g:ifAnyGranted role="ROLE_ADMIN">
        <li><a href="${createLinkTo(dir:'faq.gsp')}">FAQ</a></li>
        <li><a href="${createLinkTo(dir:'admin.gsp')}">Admin</a></li>
        </g:ifAnyGranted>
      </ul>
      <p>
      Willkommen <g:loggedInUserInfo field="username">Guest</g:loggedInUserInfo>
      <g:isLoggedIn>
        (<g:link controller="user" action="show" id="${loggedInUserInfo(field:'id')}">Details</g:link> | <g:link controller="logout">Logout</g:link>)
      </g:isLoggedIn>
      <g:isNotLoggedIn>
        (<g:link controller="login">Login</g:link>)
      </g:isNotLoggedIn>
    <p>
    </div>
  </div>

  <div id="content">
    <g:layoutBody/>
  </div>
  <div id="footer">
    <p>System Time: ${new Date()} &middot; System Version: <a href="http://code.google.com/p/motsangria" target="_blank"><g:meta name="app.version"/></a></p>
    <p><a href="${createLinkTo(dir:'disclaimer.gsp')}">Disclaimer</a> | <a href="&#109;&#097;&#105;&#108;&#116;&#111;&#058;&#105;&#110;&#102;&#111;&#064;&#109;&#111;&#116;&#115;&#097;&#110;&#103;&#114;&#105;&#097;&#046;&#100;&#101;">Contact</a> | <a href="http://code.google.com/p/motsangria/issues/list" target="_blank">Report Bugs</a></p>
    <p>Copyright &copy; 2007-2009 <a href="http://www.motsangria.de">Members of Team Sangria 2000 e.V.</a></p>
  </div>
</div>

</body>
</html>
